public class varable2 {
    public static void main(String[] args) {
        int i = 10;
        int j = 20;
        int k = 10;
        System.out.println(i == j);
        System.out.println(i == k);

            int a = 10;
            int b = 20;
            int c = 30;
            System.out.println((a > b) & (a > c));//false & false   So=false
            System.out.println((a < b) & (a > c));//true & false    So=false
            System.out.println((a > b) & (a < c));//false & true    So=false
            System.out.println((a < b) & (a < c));//true & true     So=true
            System.out.println("----------------");
            System.out.println((a > b) | (a > c));
            System.out.println((a < b) | (a > c));
            System.out.println((a > b)| (a < c));
            System.out.println((a < b) | (a < c));
            System.out.println("----------------");
            System.out.println((a > b) ? a : b);
            int abcmax = a > b ? a : b;
                    System.out.println("max:" + abcmax);
    }
}
